export interface GetUserListApiParams {
  page: number
  limit: number
  username?: string
  name?: string
}
// 用户列表的数据累心
export interface GetUserListApiResponseType {
  total: number
  items: ItemsType[]
}
export interface ItemsType {
  id: string
  gmtCreate: string
  gmtModified: string
  delete: boolean
  nickName: string
  password: string
  roleName: string
  username: string
}

// 新增用户要传的参数类型
export interface UserSaveApiParams {
  nickName: string
  username: string
  password: string
}
// 修改更新用户要传递的参数类型
export interface UserUpdateApiParams {
  nickName?: string
  username: string
  id: number
}
// 角色数据
export interface UserRolesDataType {
  allRolesList: Role[]
  assignRoles: Role[]
}
export interface Role {
  deleted: boolean
  gmtCreate: string
  gmtModified: string
  id: string
  remark: null
  roleName: string
}
